package com.example.service.student;

import com.example.entity.DTO.StudentDetailDTO;
import com.example.mapper.StudentMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * 管理学生信息
 */

@Service
public class InfoService {

    @Resource
    private StudentMapper studentMapper;

    public void update(StudentDetailDTO student) {
        studentMapper.updateById(student);
    }

    public StudentDetailDTO selectStudentDetailByUsername(String username) {
        return studentMapper.selectStudentDetailByUsername(username);
    }
}
